/*
 * G2P_NGram.h
 *
 *  Created on: Nov 24, 2012
 *      Author: bannok
 */

#ifndef G2P_NGRAM_H_
#define G2P_NGRAM_H_
#include "dictionary_tool.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <fstream>
#include <string>

#define N_GRAM_PROB_MAX 60000

typedef struct _prob_bi_struct{
	float p;
	float bo;
}prob_bi_struct;

int ngram_load(const char* input);
int ngram_dict_load(char * fn);
float ngram_calculate(char * st1,char * st2);
#endif /* G2P_NGRAM_H_ */
